/**   
 * @Title: ConnectUtil.java 
 * @Package cn.edu.cdtu.healthserver.utils
 * @Description: TODO 
 * @author  
 * @date 
 * @version V0.0   
 */
package cn.edu.cdtu.healthserver.utils;

/** 
 * @ClassName: OptionUtil 
 * @Description: TODO
 * @author 
 * @date 
 *  
 */
public final class ConnectUtil {
	
	/**
	 * 
	 * @ClassName: HealthServerContect 
	 * @Description: 该类提供各种常量标记。
	 * @author 
	 * @date 
	 *
	 */
	public static final class HealthServerContect {

		private static final String PROTOCOL = "http://";
		private static final String HOST = "192.168.56.1";
		private static final String PORT = ":8080";
		private static final String WEB_NAME = "/HealthServer";
		
		public static final String SERVER_URL = 
				PROTOCOL  + HOST + PORT + WEB_NAME;
		public static final String TEST_TYPE_SERVLET = "/TestTypeServletForClient";
		public static final String HEALTH_NEWS_SERVLET = "/HealthNewsServlet";
		public static final String LOGIN_SERVLET = "/LoginServlet";
		public static final String TEST_SERVLET = "/TestServletForClient";
		public static final String QUESTION_SERVLET = "/QuestionServletForClient";
		public static final String TEST_LOG_SERVLET = "/TestLogServletForClient";
		public static final String DOCTOR_SERVLET = "/OutputDoctor";
		public static final String REGISTER_SERVLET = "/RegisterServlet";
		public static final String HEALTH_FILE_SERVLET = "/HealthFileServlet";
		public static final String NEWS_XML = "/news.xml";
	}
	/**
	 * 
	 * @ClassName: ContentTypeString 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class ContentTypeString{
		public static final String jSON_STRING = "text/json;charset=utf-8";
	}
	/**
	 * 
	 * @ClassName: HealthTestPargrams 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class HealthTestPargrams{
		/*
		 * 
		 */
		public static final class Option{
			public static final String HEALTH_TEST_OPTION = "health_test_option";
			/*
			 * 
			 */
			public static final class OptionValue{
				public static final String HEALTH_TEST_OPTION_GET_TEST_TYPE = 
						"get_test_type";
				public static final String HEALTH_TEST_OPTION_GET_TEST = 
						"get_test";
				public static final String HEALTH_TEST_OPTION_GET_QUESTION_SET = 
						"get_question_set";
				public static final String HEALTH_TEST_OPTION_SUBMIT_ANSWER = 
						"submit_answer";
				public static final String HEALTH_TEST_OPTION_GET_TEST_LOG = 
						"get_test_log";
				public static final String HEALTH_TEST_OPTION_GET_QUESTION_LOG = 
						"get_question_log";
			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String SELECT_TEST_TYPE = "select_test_type";
			public static final String SELECT_TEST = "select_test";
			public static final String QUESTION_ANSWER = "question_answer";
			public static final String SELECT_TEST_LOG = "select_test_log";
		}
		/*
		 * 
		 */
		public static final class Result{
			public static final String NO_DATA = "no_data";
			public static final String SUBMIT_SUCCESS = "submit_success";
			public static final String SUBMIT_FAIL = "submit_fail";
			public static final String NO_LOGIN_USER = "no_login_user";
		}
	}
	/**
	 * 
	 * @ClassName: HealthNewsPargrams 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class HealthNewsPargrams{
		/*
		 * 
		 */
		public static final class Option{
			
			public static final String HEALTH_NEWS_OPERATION = "operation";
			/*
			 * 
			 */
			public static final class OptionValue{
				public static final String HEALTH_NEWS_OPERATION_BODY = "body";
				public static final String hEALTH_NEWS_OPERATION_MENTAL = "mental";
			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String HEALTH_NEWS_ID = "id";
		}
	}
	/**
	 * 
	 * @ClassName: HealthFilePargrams 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class HealthFilePargrams{
		/*
		 * 
		 */
		public static final class Option{
			
			/*
			 * 
			 */
			public static final class OptionValue{

			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String HEALTH_FILE_TYPE_ID = "type_id";
		}
	}
	/**
	 * 
	 * @ClassName: LoginPargrams 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class LoginPargrams{
		/*
		 * 
		 */
		public static final class Option{

			/*
			 * 
			 */
			public static final class OptionValue{

			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String LOGIN_ACCOUNT = "account";
			public static final String LOGIN_PASSWORD = "password";
			public static final String lOGIN_USER = "login_user";
		}
	}
	/**
	 * 
	 * @ClassName: RegisterPargrams 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class RegisterPargrams{
		/*
		 * 
		 */
		public static final class Option{

			/*
			 * 
			 */
			public static final class OptionValue{

			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String REGISTER_ACCOUNT = "accountRegister";
			public static final String REGISTER_PASSWORD = "passwordRegister";
			public static final String REGISTER_NAME = "userNameRegister";
		}
	}
	/**
	 * 
	 * @ClassName: HealthDoctorRegister 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class HealthDoctorRegister{
		/*
		 * 
		 */
		public static final class Option{
			public static final String DO_WHAT = "doWhat";
			/*
			 * 
			 */
			public static final class OptionValue{
				public static final String GET_DOCTOR_LIST = "getDoctorList";
				public static final String SEND_REG = "sendReg";
			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String REG_GET = "regGet";
		}
		/*
		 * 
		 */
		public static final class Result{
			public static final String REG_SUCCESS = "reg_success";
			public static final String REG_FALI = "reg_fail";
		}
	}
	/**
	 * 
	 * @ClassName: Admin 
	 * @Description: TODO
	 * @author 
	 * @date 
	 *
	 */
	public static final class Admin{
		public static final String ADMIN_JSP_INDEX = "./index.jsp";
		public static final String ADMIN_JSP_USER_LIST = "./user_list.jsp";
		public static final String ADMIN_USER_SERVLET = "./UserServletForAdmin";
		public static final String ADMIN_JSP_NEWS = "./update_news.jsp";
		public static final String GET_NEWS_FROM_INTERNET_SERVLET = 
				"./GetNewsFromInternetServlet";
		/*
		 * 
		 */
		public static final class Option{
			public static final String ADMIN_OPTION = "admin_option";
			/*
			 * 
			 */
			public static final class OptionValue{
				public static final String ADMIN_GET_USER_LIST = "admin_get_user_list";
				public static final String ADMIN_DELETE_USER = "admin_delete_user";
				public static final String ADMIN_ADD_USER = "admin_add_user";
			}
		}
		/*
		 * 
		 */
		public static final class Pargram{
			public static final String TARGET_USER_ID = "target_user_id";
			public static final String NEW_USER_ACCOUNT = "new_user_account";
			public static final String NEW_USER_PASSWORD = "new_user_password";
			public static final String NEW_USER_NAME = "new_user_name";
		}
		/*
		 * 
		 */
		public static final class Result{
			public static final String RESULT_MESSAGE = "result_message";
		}
	}
}
